import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqGuildWarSignUpPlayerHelper } from "./SeqGuildWarSignUpPlayerHelper";
type int = number;
//class SGuildWarSingUpInfo
    
    export  class SGuildWarSingUpInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SGuildWarSingUpInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeBool(this.isSignUp);
            arg1.writeInt(this.guildId);
            arg1.writeDate(this.signUpEndDt);
            SeqGuildWarSignUpPlayerHelper.write(arg1, this.players);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.isSignUp = arg1.readBool();
            this.guildId = arg1.readInt();
            this.signUpEndDt = arg1.readDate();
            this.players = SeqGuildWarSignUpPlayerHelper.read(arg1);
            return;
        }

        public /* const */_type: int=163;

        public /* var */isSignUp: Boolean;

        public /* var */guildId: int;

        public /* var */signUpEndDt: Date;

        public /* var */players: Array<any>;

        public static /* var */_regist: SGuildWarSingUpInfo;
    }

            SGuildWarSingUpInfo._regist = new SGuildWarSingUpInfo(true);
        